# $Header: /pub/cvsroot/mydns/src/mydns/Makefile.am,v 1.10 2002/07/08 11:35:24 bboy Exp $

sbin_PROGRAMS	=	mydns

localedir		=	$(datadir)/locale

INCLUDES			=	-I../lib -I../../lib -I../../intl $(MYSQL_INCLUDE)
DEFS				=	-DLOCALEDIR=\"$(localedir)\"
AM_LDFLAGS		=	-static
LDADD				=	../../lib/libmydnsutil.a ../lib/libmydns.a @LIBINTL@ @LIBMYSQLCLIENT@ @LIBZ@

noinst_HEADERS	=	bits.h cache.h header.h named.h status.h
mydns_SOURCES	=	cache.c conf.c data.c encode.c \
							error.c import.c io.c main.c queue.c \
							reply.c resolve.c rr.c status.c task.c

mydns_DEPENDENCIES = ../../lib/libmydnsutil.a ../lib/libmydns.a

clean:
	rm -f malloc_trace

ctags:
	ctags *.[ch] ../lib/*.[ch] ../../lib/*.[ch]

watch:
	watch -n 10 'kill -USR1 `cat /var/run/mydns.pid`'

mtrace:
	if test -f malloc_trace; then mtrace $(sbin_PROGRAMS) malloc_trace | less; fi

## vi:set ts=3:
